//
//  adScrollView.h
//  Mdongying
//
//  Created by 伟帅陈 on 13-11-19.
//  Copyright (c) 2013年 伟帅陈. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol ADScrollViewDelegate <NSObject>
@optional
- (void)viewTappedwithAdScrollView:(UIView *)view Type:(long)type;

@end


@interface adScrollView : UIScrollView<UIScrollViewDelegate>
{
    UIScrollView *scrollview;
    UIPageControl *pageC;
    int num;
    float with;
}
@property(nonatomic,retain) NSMutableArray *imageArray;
@property(nonatomic,retain) NSMutableArray *typeArray;
@property(nonatomic,retain) NSMutableArray *titleArrays;
@property(nonatomic,assign) int pageCurrent;
@property (nonatomic,assign) id<ADScrollViewDelegate> ADelegate;


- (id)initWithFrame:(CGRect)frame ImageArrays:(NSMutableArray*)imageArrays typeArrays:(NSMutableArray *)typeArrays titleDictionary:(NSMutableArray *)titleDictionAry pageConFrame:(CGRect )pageConFame isTime:(BOOL)isTime PageColor:(UIColor *)PageColor;


-(void)adScrollViewChangeImageArrys:(NSMutableArray *)Up_imageArray TypeArrays:(NSMutableArray *)Up_typeArrays titleArrays:(NSMutableArray *)Up_titleArrays;

@end
